//range时间滑块
var screenW=$('#layout').width() * 0.8;
var year=2016;
var month="";
$('.slider-input').jRange({
    from: 1,
    to: 24,
    step: 1,
    scale: ["2016.01","2016.12","2017.12"],
    format:function(value,pointer){
    	if(value<=12){
    		if(value<10){
    			value='0'+value;
    		}
    		month=value;
    	}else{
    		month=value-12;
    		if(month<10){
    			month='0'+month;
    		}
    	};
    	if(value>12){
    		year=2017;
    	}else{
    		year=2016;
    	}
    	return year+"."+month;
    },
    onstatechange:function(value,pointer){
    	if(value.split(",")[0]>12){
    		year=2017;
    	}else{
    		year=2016;
    	}
    },
    width: screenW,
    showLabels: true,
    isRange : true
});